﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="~/Share/MainMenu.Master" CodeBehind="fAddGroup.aspx.cs" Inherits="MixScriptWeb.Member.fAddGroup" %>
<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <div style="padding-left: 10px;">
       
           <h2 class="jquery_tab"> <asp:Label ID="lblTitle" runat="server" Text="Group Master" Font-Bold="True"></asp:Label>
           </h2>
           <br />
        <table style="width: 525px;" class="table-ui">
         <td align="left" valign="middle">
                
                <asp:Literal ID="MessageContainer" runat="server"></asp:Literal>
                
              </td>

            <tr>
                <td style="width: 144px; ">
                    <label id="lbuser" for="txtUserID" class="tebel">
                        GroupID</label>
                </td>
                <td style="width: 5px; ">
                    :
                </td>
                <td style="width: 753px; ">
                    <mix:baseTextBox ID="txtgroupid" runat="server"    AllowNull=True showFind=False 
                        tooltip="This Field Cannot be empty" isvalid="True" ReadOnly="False" />
                    

                </td>
                <td style="width: 127px; ">
                </td>
            </tr>
            <tr>
                <td style="width: 144px;">
                    Group Name</td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 753px;">
                   <mix:baseTextBox ID="txtgroupname" runat="server"    AllowNull=True showFind=True 
                        tooltip="This Field Cannot be empty" isvalid="True" />
                </td>
                <td style="width: 127px;">
                </td>
            </tr>
            <tr>
                <td style="width: 144px; ">                   
                       Group Desc</td>
                <td style="width: 5px; ">
                    :
                </td>
                <td style="width: 753px; ">
                 <mix:baseTextBox ID="txtgroupdesc" runat="server"    AllowNull=false showFind=False 
                        tooltip="" isvalid="True" isPassword="True" tWidht="300" />
                </td>
                <td style="width: 127px; ">
                </td>
            </tr>

             <tr>
                    <td width="1%" align="left" valign="top" nowrap="nowrap">&nbsp;</td>
                    <td width="1%" align="left" valign="top" nowrap="nowrap">&nbsp;</td>
                    <td width="98%" align="left" valign="top">
                        <span class="form_text"><asp:CheckBox ID="chkPublish" runat="server" 
                            CssClass="inputForm" Text="Publish" /></span>
                      </td>
                  </tr>

        </table>
        <br />
        <table style="width: 600px" class="table-ui" >
            <tr>
                <td style="height: 26px">
                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" 
                        Width="99px" OnClick="btnSave_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button" Width="109px"
                        OnClientClick="verify()" OnClick="btnDelete_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnFind" runat="server" Text="Find" CssClass="button" Width="101px"
                        OnClick="btnFind_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnREset" runat="server" Text="Reset Pass" CssClass="button" Width="101px"
                        OnClick="btnREset_Click" />
                </td>
                <td style="height: 26px; width: 4px;">
                    &nbsp;</td>
                <td style="height: 26px">
                               <asp:Button ID="btnClear" runat="server" Text="Clear" CssClass="button" 
                                   Width="101px" onclick="btnClear_Click" /></td>
            </tr>
        </table>
        <br />

        <tr>
            <td align="left" valign="middle"><span class="sub_page_title">Privileges</span></td>
          </tr>
          <tr>
            <td align="left" valign="middle">

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="2" DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None" 
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellSpacing="1" OnRowCreated="GridView1_RowCreated" 
               OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                        <asp:BoundField DataField="id_menu" HeaderText="id_menu" 
                            SortExpression="id_menu" />
                        <asp:BoundField DataField="menu_name" HeaderText="menu_name" 
                            SortExpression="menu_name" />
                        <asp:BoundField DataField="menu_url" HeaderText="menu_url" 
                            SortExpression="menu_url" />
                        <asp:BoundField DataField="sort_order" HeaderText="sort_order" 
                            SortExpression="sort_order" />
                        <asp:BoundField DataField="menu_desc" HeaderText="menu_desc" 
                            SortExpression="menu_desc" />
                        <asp:BoundField DataField="created_by" HeaderText="created_by" 
                            SortExpression="created_by" />
                        <asp:BoundField DataField="created_datetime" HeaderText="created_datetime" 
                            SortExpression="created_datetime" />
                        <asp:BoundField DataField="updated_by" HeaderText="updated_by" 
                            SortExpression="updated_by" />
                        <asp:BoundField DataField="updated_datetime" HeaderText="updated_datetime" 
                            SortExpression="updated_datetime" />
                        <asp:BoundField DataField="id_menu_config" HeaderText="id_menu_config" 
                            SortExpression="id_menu_config" />
                        <asp:BoundField DataField="has_view" HeaderText="has_view" 
                            SortExpression="has_view" />
                        <asp:BoundField DataField="has_add" HeaderText="has_add" 
                            SortExpression="has_add" />
                        <asp:BoundField DataField="has_edit" HeaderText="has_edit" 
                            SortExpression="has_edit" />
                        <asp:BoundField DataField="has_delete" HeaderText="has_delete" 
                            SortExpression="has_delete" />
                        <asp:BoundField DataField="has_publish" HeaderText="has_publish" 
                            SortExpression="has_publish" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                        HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
               ConnectionString="<%$ ConnectionStrings:db_sgiConnectionString %>" 
               SelectCommand="SELECT * FROM [vw_menu]"></asp:SqlDataSource>
                </td>
                </tr>

        <asp:Label ID="lblRowCount" runat="server" Font-Bold="True" Font-Size="X-Small"></asp:Label>
        <br />
        <div id="pnldetail"></div>
        <br />
        <br />
        </div>

        </asp:Content>